<div class="eject_con">
  <div class="add">
    <div id="warning"></div>
    <form method="post" action="{$action}" id="address_form" target="iframe">
      <ul>
        <li>
          <h3>{$lang.consignee}: </h3>
          <p>
            <input type="text" class="text width_normal" name="consignee" value="{$address.consignee|escape}"/>
            <label class="field_message"><span class="field_notice">{$lang.consignee_desc}</span></label>
          </p>
        </li>
        <li>
          <h3>{$lang.region}: </h3>
          <p>
          <div id="region">
            <input type="hidden" name="region_id" value="{$address.region_id}" id="region_id" class="mls_id" />
            <input type="hidden" name="region_name" value="{$address.region_name|escape}" class="mls_names" />
            <!-- {if $address.region_id} --> 
            <span>{$address.region_name|escape}</span>
            <input type="button" value="{$lang.edit}" class="edit_region" />
            <select style="display:none" onchange="hide_error();">
              <option>{$lang.select_pls}</option>
              
                          {html_options options=$regions}
                        
            </select>
            <!-- {else} -->
            <select onchange="hide_error();">
              <option>{$lang.select_pls}</option>
              
                          {html_options options=$regions}
                        
            </select>
            <!-- {/if} --> 
            <b class="field_message" style="font-weight:normal;">
            <label class="field_notice"></label>
            </b> </div>
          </p>
        </li>
        <li>
          <h3>{$lang.address}: </h3>
          <p>
            <input type="text" class="text width_normal" name="address" value="{$address.address|escape}"/>
            <label class="field_message"><span class="field_notice">{$lang.address_desc}</span></label>
          </p>
        </li>
        <li>
          <h3>{$lang.zipcode}: </h3>
          <p>
            <input type="text" class="text width_normal" name="zipcode" name="zipcode" value="{$address.zipcode|escape}" />
            <label class="field_message"><span class="field_notice"></span></label>
          </p>
        </li>
        <li>
          <h3>{$lang.phone_tel}:</h3>
          <p>
            <input type="text" class="text width_normal"  name="phone_tel" value="{$address.phone_tel}"/>
          </p>
        </li>
        <li>
          <h3>{$lang.phone_mob}:</h3>
          <p>
            <input type="text" class="text width_normal" name="phone_mob" value="{$address.phone_mob}"/>
            <label class="field_message"><span class="field_notice">{$lang.phone_mob}</span></label>
          </p>
        </li>
        <li>
          <h3>设为默认:</h3>
          <p style="line-height: 24px;">
            <label>
              <input type="radio"  style="margin-right:5px;" name="defaddr" value="0" {if $address.defaddr eq 0}checked="checked"{/if} />
              {$lang.no} </label>
            <label>
              <input type="radio" name="defaddr" value="1" {if $address.defaddr eq 1}checked="checked"{/if} />
              {$lang.yes} </label>
          </p>
        </li>
      </ul>
      <div class="submit">
      	<input type="hidden" name="redirect" value="{$redirect}" />
        <input type="submit" class="btn" value="{$lang.submit}" />
      </div>
    </form>
  </div>
</div>
<script type="text/javascript">
$(function(){
    regionInit("region");
});
</script>